package com.hue.springbootquartz;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.Date;

/**
 * 台风工单_主表
 *
 * @author DR
 */
@Data
public class Typhoon {

    /** 唯一标识 */
    private String t_id;

    private Date occurrence_time;

    private String region;

    @NotBlank(message = "站名不能为空")
    @Size(min = 0, max = 30, message = "站名长度不能超过30个字符")
    private String station_name;

    private String line_equipment_name;

    private JSONObject failure_point;

    private String voltage_level;

    private Boolean if_network;

    private String fault_type;

    private String closing_condition;

    private String priority;

    private Integer number_affected_users;

    private Integer number_affected_stations;

    private JSONArray commander;

    private Boolean if_repair;

    private Date repair_time;

    private Boolean if_report;

    private String status;

    private Integer status_code;

    private String early_warning;

    private Integer early_warning_code;

    private String remark;

    private String create_by;

    private Date create_time;

    private String update_by;

    private Date update_time;

    private String line_team_name;

    private String line_patrol_team_name;

    private String line_repair_team_name;

    private String distribution_team_name;

    private String distribution_patrol_team_name;

    private String distribution_repair_team_name;

    private String cable_team_name;

    private String cable_patrol_team_name;

    private String cable_repair_team_name;
}
